<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link href="${pageContext.request.contextPath}/js/css/bootstrap.min.css" rel="stylesheet">
    <title>酒店管理系统</title>
</head>
<body style="background: url(./img//2.jpg) no-repeat;background-size: cover;">
<header class="header">

    <div class="logo">

        <div class="container">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <h1 class="text-center text-info">
                        <FONT style="FONT-SIZE: 50px; FILTER: shadow(color=black); WIDTH: 100%; COLOR: black; LINE-HEIGHT: 150%; FONT-FAMILY: 楷体"><B>酒店管理系统</B></FONT>
                    </h1>
                </div>
            </div>
        </div>


        <div class="container">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="row clearfix">
                        <div class="col-md-4 column">
                        </div>
                        <div class="col-md-4 column">
                            <form role="form" action="${pageContext.request.contextPath}/Login" method="post"
                                  onsubmit="return toVaild()">
                                <div class="form-group">
                                    <font style="FONT-SIZE: 35px; FILTER: shadow(color=black); WIDTH: 100%; COLOR: black; LINE-HEIGHT: 150%; FONT-FAMILY: 楷体"><B>账号</B></FONT>
                                    <label for="exampleInputEmail1"></label><input type="text" class="form-control"
                                                                                   id="exampleInputEmail1"
                                                                                   name="account"/>
                                </div>
                                <div class="form-group">
                                    <font style="FONT-SIZE: 35px; FILTER: shadow(color=black); WIDTH: 100%; COLOR: black; LINE-HEIGHT: 150%; FONT-FAMILY: 楷体"><B>密码</B></FONT>
                                    <label for="exampleInputPassword1"></label><input type="password"
                                                                                      class="form-control"
                                                                                      id="exampleInputPassword1"
                                                                                      name="password"/>
                                </div>


                                <div class="form-group">

                                    <select class="form-control" id="projectPorperty" name="pow">
                                        <option value="1">管理员</option>
                                        <option value="0">用户</option>
                                    </select>

                                </div>
                                <div class="form-group">

                                    <p style="font-size:25px;" class="help-block">
                                        ${admin}
                                        <%request.getSession().removeAttribute("admin"); %>
                                    </p>
                                </div>


                                <div class="checkbox">
                                    <a href="Register.jsp" style="font-size:20px;">注册界面 </a>
                                </div>
                                <button type="submit" style="font-size:30px;" class="btn btn-default">登录</button>
                            </form>
                        </div>
                        <div class="col-md-4 column">
                        </div>
                    </div>
                </div>
            </div>
        </div>


</body>
<script language="javascript">
    function toVaild() {
        var val = document.getElementById("exampleInputEmail1").value;
        var val1 = document.getElementById("exampleInputPassword1").value;

        if (val == "") {
            alert("请输入账号");
            return false;
        } else if (val1 == "") {
            alert("请输入密码");
            return false;
        } else {
            return true;
        }
    }
</script>
</html>